home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
system
/
aim20.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-11-17
|
7KB
|
147 lines
Echo Off
REM ******************************************************
REM * File : Install.bat
REM * Author : Stephen Williams
REM * Date : Nov 16, 1994
REM * Revised:
REM * Purpose: Installation - AIMII
REM ******************************************************
if "%1" == "" goto help
for %%f in (A:,a:,B:,b:,?,A,a,B,b) do if %1.==%%f. goto Help
for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1.==%%f. goto Help
for %%f in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:) do if %1.==%%f. goto Help
for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:) do if %1.==%%f. goto Help
for %%f in (X:,x:,Y:,y:,Z:,z:) do if %1.==%%f. goto Help
REM **************************
REM HARD DISK INSTALLATION
REM **************************
if not exist %1:\nul goto help
if not exist AIM_EXE.EXE goto BadDef
if not exist AIM_DAT.EXE goto BadDef
if not exist README.AIM goto BadDef
if not exist ORDER.DOC goto BadDef
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ │
Echo │ ACTION ITEM MANAGER II (tm) INSTALLATION │
Echo │ │
Echo │ Install Main Program & Help Files on %1:\AIM │
Echo │ │
if exist %1:\AIM\AIM.EXE goto ExistEXE
if exist %1:\AIM\HELP.DBF goto ExistEXE
if exist %1:\AIM\HELP.DBT goto ExistEXE
if exist %1:\AIM\PRDEF.DBF goto ExistEXE
if exist %1:\AIM\ORDER.DOC goto ExistEXE
:InsMain
Echo └──────────────────────────────────────────────────────┘
Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
AIM_EXE %1:\AIM
COPY README.AIM %1:\AIM
COPY ORDER.DOC %1:\AIM
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ │
Echo │ ACTION ITEM MANAGER II (tm) INSTALLATION │
Echo │ │
Echo │ Installing Sample Data Files on %1:\AIM │
Echo │ │
if exist %1:\AIM\AI2.DBF goto ExistDat
if exist %1:\AIM\AI2.DBT goto ExistDat
if exist %1:\AIM\GROUPS.DBF goto ExistDat
if exist %1:\AIM\JOURNAL.DBF goto ExistDat
if exist %1:\AIM\JOURNAL.DBT goto ExistDat
if exist %1:\AIM\SCHEDULE.DBF goto ExistDat
if exist %1:\AIM\USERS.DBF goto ExistDat
:InsDat
Echo └──────────────────────────────────────────────────────┘
Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
AIM_DAT %1:\AIM
%1:
CD \AIM
goto End
:ExistEXE
Echo │ IMPORTANT: Program already exists on your system. │
Echo │ │
Echo │ When Prompted: Overwrite [Y/N] │
Echo │ │
Echo │ Press Y if you are upgrading from an earlier version │
Echo │ or want to reinstall the program. │
Echo │ │
Echo │ Press N to retain your existing program & help files.│
goto InsMain
:ExistDat
Echo │ IMPORTANT: Data files already exist on your system. │
Echo │ │
Echo │ When Prompted: Overwrite [Y/N] │
Echo │ │
Echo │ Press N to retain your existing data files. │
Echo │ │
Echo │ Press Y to replace your existing data files with the │
Echo │ new data files. │
goto InsDat
:BadDef
CLS
Echo ┌────────────────────────────────────────────────────────────────┐
Echo │ ACTION ITEM MANAGER II (AIM) - Installation HELP │
Echo │ │
Echo │ INSTALL must be run from the drive where INSTALL.BAT resides. │
Echo │ │
Echo │ If you are installing AIM from a floppy disk in drive A, │
Echo │ type "A:" before running INSTALL. │
Echo │ │
Echo │ Example: A: (Set Default To Drive A) │
Echo │ INSTALL C (Install Program on drive C) │
Echo │ │
Echo │ PROGRAM NOT INSTALLED │
Echo └────────────────────────────────────────────────────────────────┘
goto bad_end
:Help
Cls
Echo ┌────────────────────────────────────────────────────────────────┐
Echo │ ACTION ITEM MANAGER II (AIM) - Installation HELP │
Echo │ │
Echo │ │
Echo │ AIM must be installed on a HARD DISK DRIVE. │
Echo │ │
Echo │ The install program decompresses archive files and copies them │
Echo │ to subdirectory \AIM on the designated hard disk drive. If │
Echo │ \AIM does not exist on the designated hard disk, it will be │
Echo │ created for you. │
Echo │ │
Echo │ Syntax for the command is: INSTALL d │
Echo │ │
Echo │ where "d" is the hard disk drive letter where you want │
Echo │ the program installed. │
Echo │ │
Echo │ Examples: INSTALL C (Note no colon is typed) │
Echo │ INSTALL D │
Echo │ etc. │
Echo │ │
Echo │ PROGRAM NOT INSTALLED │
Echo └────────────────────────────────────────────────────────────────┘
goto bad_end
REM ************************
REM End Of AIM Installation
REM ************************
:end
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ ACTION ITEM MANAGER II INSTALLED ON %1:\AIM │
Echo │ │
Echo │ To run AIM type "AIM" │
Echo │ │
Echo │ Please review file README.AIM for important infor- │
Echo │ mation on configuring your system. │
Echo └──────────────────────────────────────────────────────┘
:bad_end